package books

type Book struct{
  Title  string;
  Author string;
  Pages  int;
}

func (book Book) CategoryByLength() string {
  if book.Pages>300{
    return "NOVEL"
  } else{
    return "SHORT STORY"
  }
}

func (book Book) GetAuthor() string  {
  return book.Author
}

